import Router from "koa-router";
import UserController from "../controller/userController";
import verify from "../middleware/verify"; //token校验

const router = new Router();
router.prefix("/api/user"); //接口前缀

router
  .post("/saveUser", verify, UserController.saveUser)
  .get("/getAllUser", UserController.getAllUser)
  .get("/getUserById", UserController.getUserById);

export default router;
